<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>小工匠订单管理系统</title>

    <link href="<%=path%>/resources/css/style.css" rel="stylesheet">
    <link href="<%=path%>/resources/css/style-responsive.css" rel="stylesheet">
    <link href="<%= basePath%>/resources/js/fileInputpl/css/fileinput.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="<%=path%>/resources/js/html5shiv.js"></script>
    <script src="<%=path%>/resources/js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <%@ include file="/page/common/leftmenu.jsp" %>
    <!-- left side end-->

    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <%@ include file="/page/common/top.jsp" %>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>

            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">管理平台</a>
                </li>
                <li><a href="<%=path%>/admin/bus/business_list.do">订单管理</a></li>
                <li class="active">派单</li>

            </ul>
        </div>

        <!-- page heading end-->

        <!--body wrapper start-->
        <section class="wrapper">
            <!-- page start-->
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <div class="panel-body">
                            <div class=" form">
                                <form class="cmxform form-horizontal adminex-form" id="commentForm" enctype="multipart/form-data" method="post"
                                      action="<%=path%>/admin/bus/add_bus.do" novalidate="novalidate">
                                    <div class="form-group ">
                                        <label class="control-label col-lg-2">单项工程</label>
                                        <div class="col-lg-10">
                                            <select id="pid" name="workerId" class="form-control selectpicker" data-live-search="true">
                                                <c:forEach var="w" items="${workers}">
                                                    <option value="${w.id}">${w.wName}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-lg-offset-2 col-lg-10">
                                            <button class="btn btn-primary" type="submit">保存</button>
                                        </div>
                                    </div>
                                </form>
                            </div>

                        </div>
                    </section>
                </div>
            </div>

            <!-- Modal -->
            <!-- modal -->
            <!-- page end-->
        </section>


        <!--body wrapper end-->

        <!--footer section start-->
        <%@ include file="/page/common/footer.jsp" %>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<script src="<%=path%>/resources/js/jquery-1.10.2.min.js"></script>
<script src="<%=path%>/resources/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="<%=path%>/resources/js/jquery-migrate-1.2.1.min.js"></script>
<script src="<%=path%>/resources/js/bootstrap.min.js"></script>
<script src="<%=path%>/resources/js/modernizr.min.js"></script>
<script src="<%=path%>/resources/js/jquery.nicescroll.js"></script>

<script type="text/javascript" src="<%=path%>/resources/js/jquery.validate.min.js"></script>
<%--
<script src="<%=path%>/resources/js/validation-init.js"></script>
--%>
<script src="<%=path%>/resources/js/fileInputpl/js/fileinput.js"></script>

<!--common scripts for all pages-->
<script src="<%=path%>/resources/js/scripts.js"></script>
<script>
    var offset = -1;
    var $table = $('#table'), selections = [];
    $(function () {
        //init_two_type();
    });
    /*function init_two_type() {
        $.ajax({
            url: '<%=basePath %>/admin/btype/get_two_type.do?&pid=1',
            async: false,
            success: function (data) {
                $.each(data.data, function (idx, obj) {
                    var value = obj.bId;
                    $('#pid').append('<option value=' + value + '>' + obj.bName + '</option>')
                });
            }
        });
    }*/

    jQuery(document).ready(function($)
    {
        selectEffect("admin/bus/business_list.do");
    });
</script>
</body>
</html>

